﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Imgur.Net.Auth
{
    /// <summary>
    /// Holder for the tokens returned by the Imgur auth service to be used in subsequent requests.
    /// </summary>
    /// <remarks>
    /// Note that properties are actually valid if null and therefore there is no null check on instance
    /// creation.
    /// </remarks>
    public class DefaultRegistrationTokenContext : RegistrationTokenContext
    {
        public string AccessToken { get; private set; }
        public string RefreshToken { get; private set; }
        public DateTime Expiration { get; private set; }

        protected DefaultRegistrationTokenContext()
        {
        }

        public DefaultRegistrationTokenContext(string accessToken, string refreshToken, DateTime expiration)
        {
            AccessToken = accessToken;
            RefreshToken = refreshToken;
            Expiration = expiration;
        }
    }
}
